class BlockL extends Block {
  BlockL() {
    super();
    this.add(-50, 100);
    this.add(-50, -100);
    this.add(50, -100);
  }

  void draw() {
    beginShape();
    for (PVector v : super.vertices) {
      vertex(v.x, v.y);
    }
    endShape(CLOSE);
  }
}

class BlockX extends Block {
  void draw() {
    pushStyle();
    for (PVector v : super.vertices) {
      if (this.insideHull(v.x, v.y)) {
        stroke(255, 0, 255);
      }
      else {
        stroke(0);
      }
      ellipse(v.x, v.y, 10, 10);
    }
    stroke(0);
    if (this.size() == 2) {
      PVector v1 = super.vertices.get(0);
      PVector v2 = super.vertices.get(1);
      line(v1.x, v1.y, v2.x, v2.y);
    }
    popStyle();
    this.drawConvexHull();
    this.drawBoundingRect();
    //this.drawBoundingCircle();
  }
}
